<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<title>添加采集规则  - 易大师采集器 - FinalCMS</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

<link rel="stylesheet" href="${ctx}/css/bootstrap.min.css" />
<link rel="stylesheet" href="${ctx}/css/font-awesome.min.css" />
<link rel="stylesheet" href="${ctx}/css/jquery-ui.min.css" />
<link rel="stylesheet" href="${ctx}/css/jquery-ui.custom.min.css" />
<link rel="stylesheet" href="${ctx}/css/fc-fonts.css" />
<link rel="stylesheet" href="${ctx}/css/fc.min.css" />
<!--[if lte IE 9]>
	<link rel="stylesheet" href="${ctx}/css/fc-part2.min.css" />
<![endif]-->
<link rel="stylesheet" href="${ctx}/css/fc-skins.min.css" />
<link rel="stylesheet" href="${ctx}/css/fc-rtl.min.css" />

<!--[if lte IE 9]>
  <link rel="stylesheet" href="${ctx}/css/fc-ie.min.css" />
<![endif]-->

<!--[if lte IE 8]>
<script src="${ctx}/js/html5shiv.js"></script>
<script src="${ctx}/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
var ctx = "${ctx}";
</script>
</head>

<body class="no-skin">
<div class="page-content">
<div class="page-header">
	<h1>
		小说采集规则
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			创建
		</small>
	</h1>
</div><!-- /.page-header -->
			
<div class="row">
<div class="col-xs-12">
<h4 class="lighter">
	<i class="ace-icon fa fa-home icon-animated-hand-pointer blue"></i>
	<a href="/" class="pink" style="margin-right: 30px;"> 返回首页 </a>
	<i class="ace-icon fa fa-user icon-animated-hand-pointer blue"></i>
	<a href="/user/goFavorite" class="pink" style="margin-right: 30px;"> 返回个人中心 </a>
	<i class="ace-icon fa fa-hand-o-right icon-animated-hand-pointer blue"></i>
	<a href="/rule/novel" class="pink"> 返回所有规则 </a>
</h4>
<div class="hr hr-18 hr-double dotted"></div>

<form id="ruleForm" action="${ctx}/rule/novel/doCreate" method="post" class="form-horizontal" role="form">
	<div class="widget-box">
		<div class="widget-header widget-header-blue widget-header-flat">
			<h4 class="widget-title lighter">基本信息</h4>
		</div>
		<div class="widget-body">
			<div class="widget-main">
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="RuleVersion">规则版本(RuleVersion)</label>
					<div class="col-sm-10">
						<input type="text" id="RuleVersion" name="RuleVersion" placeholder="规则版本" class="col-xs-10 col-sm-5" 
							value="${RuleVersion.pattern!'1'}" />
						<span class="help-block">本次新增规则版本， 默认为1</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="GetSiteName">站点名称(GetSiteName)</label>
					<div class="col-sm-10">
						<input type="text" id="GetSiteName" name="GetSiteName" placeholder="站点名称" class="col-xs-10 col-sm-5" 
							value="${GetSiteName.pattern!''}"/>
						<span class="help-block"> 目标站点名称， 方便规则作者区分多个规则  </span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="GetSiteCharset">站点编码(GetSiteCharset)</label>
					<div class="col-sm-10">
						<input type="text" id="GetSiteCharset" name="GetSiteCharset" placeholder="站点编码" class="col-xs-10 col-sm-5" 
							value="${GetSiteCharset.pattern!''}"/>
						<span class="help-block"> 目标站点的编码， 如果留空则程序抓取数据的时候会使用目标站编码 </span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="GetSiteUrl">站点地址(GetSiteUrl)</label>
					<div class="col-sm-10">
						<input type="text" id="GetSiteUrl" name="GetSiteUrl" placeholder="站点地址 " class="col-xs-10 col-sm-10"
							value="${GetSiteUrl.pattern!''}"/>
						<span class="help-block"> 目标站URL， 如果后续规则中使用了相对路径， 则会用到此处的值， 建议填写 </span>
					</div>
				</div>
			</div>
		</div>
	</div>
	
	<div class="widget-box">
		<div class="widget-header widget-header-blue widget-header-flat">
			<h4 class="widget-title lighter">根据本站小说名查找目标站小说</h4>
		</div>
		<div class="widget-body">
			<div class="widget-main">
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelSearchUrl">搜索页地址(NovelSearchUrl)</label>
					<div class="col-sm-10">
						<input type="text" id="NovelSearchUrl" name="NovelSearchUrl" placeholder="目标站搜索页地址 " class="col-xs-10 col-sm-10" 
							value="${NovelSearchUrl.pattern!''}"/>
						<span class="help-block">目标站的搜索页地址，小说名使用{SearchNovelName}代替</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="TestSearchNovelName">测试用小说名(TestSearchNovelName)</label>
					<div class="col-sm-10">
						<input type="text" id="TestSearchNovelName" name="TestSearchNovelName" placeholder="目标站搜索页地址 " class="col-xs-10 col-sm-10" 
							value="${TestSearchNovelName.pattern!''}"/>
						<span class="help-block">测试用的小说名，正常采集不会用到</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelSearch_GetNovelKey">获得目标站小说号(NovelSearch_GetNovelKey)</label>
					<div class="col-sm-10">
						<input type="text" id="NovelSearch_GetNovelKey" name="NovelSearch_GetNovelKey" placeholder="从搜索结果中获得小说名和小说编号 " class="col-xs-10 col-sm-10" 
							value="${NovelSearch_GetNovelKey.pattern!''}"/>
						<span class="help-block">根据目标站搜索页地址和搜索参数获取需要搜索的小说名和小说编号， 如果获取的小说名和搜索参数中的小说名一致， 则使用获取的小说编号进行抓取</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelSearch_GetNovelName">获得目标站小说名(NovelSearch_GetNovelName)</label>
					<div class="col-sm-10">
						<input type="text" id="NovelSearch_GetNovelName" name="NovelSearch_GetNovelName" placeholder="从搜索结果中获得小说名和小说编号 " class="col-xs-10 col-sm-10" 
							value="${NovelSearch_GetNovelName.pattern!''}"/>
						<span class="help-block">过滤掉搜索结果中的长尾词</span>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="widget-box">
		<div class="widget-header widget-header-blue widget-header-flat">
			<h4 class="widget-title lighter">小说信息&章节列表规则</h4>
		</div>
		<div class="widget-body">
			<div class="widget-main">
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelListUrl">列表地址(NovelListUrl)</label>
					<div class="col-sm-10">
						<textarea class="form-control" id="NovelListUrl" name="NovelListUrl" placeholder="列表地址,一行一个">${NovelListUrl.pattern!''}</textarea>
						<span class="help-block">填写从目标站点获取小说编号的页面，每行一个</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelList_GetNovelKey">获得小说编号(NovelList_GetNovelKey)</label>
					<div class="col-sm-10">
						<input type="text" id="NovelList_GetNovelKey" name="NovelList_GetNovelKey" placeholder="获得小说编号 " class="col-xs-10 col-sm-10" 
							value="${NovelList_GetNovelKey.pattern!''}"/>
						<span class="help-inline col-xs-2 col-sm-2">
							<label class="middle">
								<input class="ace" type="checkbox" id="_NovelList_GetNovelKey_IgnoreCase" name="_NovelList_GetNovelKey_IgnoreCase" ${NovelList_GetNovelKey.options!"" == "IgnoreCase" ? "checked='checked'" : ""}/>
								<span class="lbl">忽略大小写</span>
							</label>
						</span>
						<span class="help-block">从上面所填的页面获得小说编号,此规则中可以同时获得书名以方便手动时查看,此获得结果存入{NovelKey}变量</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelList_GetNovelKey2">获得真实小说编号(NovelList_GetNovelKey2)</label>
					<div class="col-sm-10">
						<input type="text" id="NovelList_GetNovelKey2" name="NovelList_GetNovelKey2" placeholder="获得小说编号 " class="col-xs-10 col-sm-10" 
							value="${NovelList_GetNovelKey2.pattern!''}"/>
						<span class="help-inline col-xs-2 col-sm-2">
							<label class="middle">
								<input class="ace" type="checkbox" id="_NovelList_GetNovelKey2_IgnoreCase" name="_NovelList_GetNovelKey2_IgnoreCase" ${NovelList_GetNovelKey2.options!"" == "IgnoreCase" ? "checked='checked'" : ""}/>
								<span class="lbl">忽略大小写</span>
							</label>
						</span>
						<span class="help-block">真正的小说号,数字或字母, 是上面规则的子集, 如上面规则获取的结果是/bk/xh/123.html,这里的规则就要填/bk/xh/(\d*).html,此获得结果存入{NovelKey2}变量,此规则为加强规则, 一般不需要填写</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelUrl">小说信息页地址(NovelUrl)</label>
					<div class="col-sm-10">
						<input type="text" id="NovelUrl" name="NovelUrl" placeholder="小说信息页地址 " class="col-xs-10 col-sm-10" 
							value="${NovelUrl.pattern!'' }" />
						<span class="help-block">小说信息页地址 可调用{NovelKey}变量, {NovelKey}一般情况表示小说编号</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelName">获得小说名(NovelName)</label>
					<div class="col-sm-10">
						<input type="text" id="NovelName" name="NovelName" placeholder="获得小说名 " class="col-xs-10 col-sm-10" 
							value="${NovelName.pattern!'' }"/>
						<span class="help-inline col-xs-2 col-sm-2">
							<label class="middle">
								<input class="ace" type="checkbox" id="_NovelName_IgnoreCase" name="_NovelName_IgnoreCase" ${NovelName.options!"" == "IgnoreCase" ? "checked='checked'" : ""}/>
								<span class="lbl">忽略大小写</span>
							</label>
						</span>
						<span class="help-block"></span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelName_FilterPattern">小说名替换</label>
					<div class="col-sm-10">
						<textarea class="form-control" id="NovelName_FilterPattern" name="NovelName_FilterPattern" placeholder="小说名替换规则,一行一个">${NovelName.filterPattern!'' }</textarea>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelAuthor">获得小说作者(NovelAuthor)</label>
					<div class="col-sm-10">
						<input type="text" id="NovelAuthor" name="NovelAuthor" placeholder="获得小说作者 " class="col-xs-10 col-sm-10" 
							value="${NovelAuthor.pattern!'' }"/>
						<span class="help-inline col-xs-2 col-sm-2">
							<label class="middle">
								<input class="ace" type="checkbox" id="_NovelAuthor_IgnoreCase" name="_NovelAuthor_IgnoreCase" ${NovelAuthor.options!"" == "IgnoreCase" ? "checked='checked'" : ""}/>
								<span class="lbl">忽略大小写</span>
							</label>
						</span>
						<span class="help-block"></span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="LagerSort">获得小说大类(LagerSort)</label>
					<div class="col-sm-10">
						<input type="text" id="LagerSort" name="LagerSort" placeholder="获得小说大类 " class="col-xs-10 col-sm-10" 
							value="${LagerSort.pattern!'' }"/>
						<span class="help-inline col-xs-2 col-sm-2">
							<label class="middle">
								<input class="ace" type="checkbox" id="_LagerSort_IgnoreCase" name="_LagerSort_IgnoreCase" ${LagerSort.options!"" == "IgnoreCase" ? "checked='checked'" : ""}/>
								<span class="lbl">忽略大小写</span>
							</label>
						</span>
						<span class="help-block"></span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="SmallSort">获得小说小类(SmallSort)</label>
					<div class="col-sm-10">
						<input type="text" id="SmallSort" name="SmallSort" placeholder="获得小说小类 " class="col-xs-10 col-sm-10" 
							value="${SmallSort.pattern!'' }"/>
						<span class="help-inline col-xs-2 col-sm-2">
							<label class="middle">
								<input class="ace" type="checkbox" id="_SmallSort_IgnoreCase" name="_SmallSort_IgnoreCase" ${SmallSort.options!"" == "IgnoreCase" ? "checked='checked'" : ""}/>
								<span class="lbl">忽略大小写</span>
							</label>
						</span>
						<span class="help-block">获得小说小类正则，如果不知道怎么填就重复一次大类的规则</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelIntro">获得小说简介(NovelIntro)</label>
					<div class="col-sm-10">
						<input type="text" id="NovelIntro" name="NovelIntro" placeholder="获得小说简介 " class="col-xs-10 col-sm-10" 
							value="${NovelIntro.pattern!'' }"/>
						<span class="help-inline col-xs-2 col-sm-2">
							<label class="middle">
								<input class="ace" type="checkbox" id="_NovelIntro_IgnoreCase" name="_NovelIntro_IgnoreCase" ${NovelIntro.options!"" == "IgnoreCase" ? "checked='checked'" : ""}/>
								<span class="lbl">忽略大小写</span>
							</label>
						</span>
						<span class="help-block"></span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelIntro_FilterPattern">小说简介替换</label>
					<div class="col-sm-10">
						<textarea class="form-control" id="NovelIntro_FilterPattern" name="NovelIntro_FilterPattern" placeholder="小说简介替换规则,一行一个">${NovelIntro.filterPattern!'' }</textarea>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelKeyword">获得关键字(NovelKeyword)</label>
					<div class="col-sm-10">
						<input type="text" id="NovelKeyword" name="NovelKeyword" placeholder="获得关键字 " class="col-xs-10 col-sm-10" 
							value="${NovelKeyword.pattern!'' }"/>
						<span class="help-inline col-xs-2 col-sm-2">
							<label class="middle">
								<input class="ace" type="checkbox" id="_NovelKeyword_IgnoreCase" name="_NovelKeyword_IgnoreCase" ${NovelKeyword.options!"" == "IgnoreCase" ? "checked='checked'" : ""}/>
								<span class="lbl">忽略大小写</span>
							</label>
						</span>
						<span class="help-block">获得关键字称正则,不知道怎么填就留空或者填入获取主角的正则</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelDegree">获得写作进度(NovelDegree)</label>
					<div class="col-sm-10">
						<input type="text" id="NovelDegree" name="NovelDegree" placeholder="获得写作进度 " class="col-xs-10 col-sm-10" 
							value="${NovelDegree.pattern!'' }"/>
						<span class="help-inline col-xs-2 col-sm-2">
							<label class="middle">
								<input class="ace" type="checkbox" id="_NovelDegree_IgnoreCase" name="_NovelDegree_IgnoreCase" ${NovelDegree.options!"" == "IgnoreCase" ? "checked='checked'" : ""}/>
								<span class="lbl">忽略大小写</span>
							</label>
						</span>
						<span class="help-block"></span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelDegree_FilterPattern">写作进度替换</label>
					<div class="col-sm-10">
						<textarea class="form-control" id="NovelDegree_FilterPattern" name="NovelDegree_FilterPattern" placeholder="写作进度替换规则,一行一个">${NovelDegree.filterPattern!'' }</textarea>
						<span class="help-block">删除字符串， 直接写就是， 替换字符串写法类似  源字符串♂替换后的字符串</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelCover">获得小说封面(NovelCover)</label>
					<div class="col-sm-10">
						<input type="text" id="NovelCover" name="NovelCover" placeholder="获得小说封面 " class="col-xs-10 col-sm-10" 
							value="${NovelCover.pattern!'' }"/>
						<span class="help-inline col-xs-2 col-sm-2">
							<label class="middle">
								<input class="ace" type="checkbox" id="_NovelCover_IgnoreCase" name="_NovelCover_IgnoreCase" ${NovelCover.options!"" == "IgnoreCase" ? "checked='checked'" : ""}/>
								<span class="lbl">忽略大小写</span>
							</label>
						</span>
						<span class="help-block"></span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelDefaultCoverUrl">小说默认封面(NovelDefaultCoverUrl)</label>
					<div class="col-sm-10">
						<input type="text" id="NovelDefaultCoverUrl" name="NovelDefaultCoverUrl" placeholder="小说默认封面 " class="col-xs-10 col-sm-10" 
							value="${NovelDefaultCoverUrl.pattern!'' }"/>
						<span class="help-block">目标站默认封面地址不存在，则按此规则采集封面</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelInfoExtra">获取信息页额外信息(NovelInfoExtra)</label>
					<div class="col-sm-10">
						<input type="text" id="NovelInfoExtra" name="NovelInfoExtra" placeholder="获得信息页额外信息 " class="col-xs-10 col-sm-10" 
							value="${NovelInfoExtra.pattern!'' }"/>
						<span class="help-inline col-xs-2 col-sm-2">
							<label class="middle">
								<input class="ace" type="checkbox" id="_NovelInfoExtra_IgnoreCase" name="_NovelInfoExtra_IgnoreCase" ${NovelInfoExtra.options!"" == "IgnoreCase" ? "checked='checked'" : ""}/>
								<span class="lbl">忽略大小写</span>
							</label>
						</span>
						<span class="help-block"></span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelInfoExtra_FilterPattern">信息页额外信息替换</label>
					<div class="col-sm-10">
						<textarea class="form-control" id="NovelInfoExtra_FilterPattern" name="NovelInfoExtra_FilterPattern" placeholder="信息页额外信息替换规则,一行一个">${NovelInfoExtra.filterPattern!'' }</textarea>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="NovelInfo_GetNovelPubKey">目录页地址(抓取)(NovelInfo_GetNovelPubKey)</label>
					<div class="col-sm-10">
						<input type="text" id="NovelInfo_GetNovelPubKey" name="NovelInfo_GetNovelPubKey" placeholder="目录页地址 " class="col-xs-10 col-sm-10" 
							value="${NovelInfo_GetNovelPubKey.pattern!'' }"/>
						<span class="help-inline col-xs-2 col-sm-2">
							<label class="middle">
								<input class="ace" type="checkbox" id="_NovelInfo_GetNovelPubKey_IgnoreCase" name="_NovelInfo_GetNovelPubKey_IgnoreCase" ${NovelInfo_GetNovelPubKey.options!"" == "IgnoreCase" ? "checked='checked'" : ""}/>
								<span class="lbl">忽略大小写</span>
							</label>
						</span>
						<span class="help-block">从信息页抓取目录页地址， 和指定目录页地址选填一个即可</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="PubIndexUrl">目录页地址(指定)(PubIndexUrl)</label>
					<div class="col-sm-10">
						<input type="text" id="PubIndexUrl" name="PubIndexUrl" placeholder="目录页地址 " class="col-xs-10 col-sm-10" 
							value="${PubIndexUrl.pattern!'' }"/>
						<span class="help-block">指定目录页地址，可调用{NovelPubKey}、{NovelKey}变量， 和抓取目录页地址选填一个即可</span>
					</div>
				</div>
				<div class="clearfix">
					<div class="col-md-offset-3 col-md-9">
						<button class="btn btn-warning" type="button" onclick="_test()">
							<i class="ace-icon fa fa-caret-square-o-right bigger-110"></i>
							测试
						</button>
					</div>
				</div>
			</div>
		</div>
	</div>
	
	<div class="widget-box">
		<div class="widget-header widget-header-blue widget-header-flat">
			<h4 class="widget-title lighter">章节内容</h4>
		</div>
		<div class="widget-body">
			<div class="widget-main">
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="PubChapterRegion">章节范围 (PubChapterRegion)</label>
					<div class="col-sm-10">
						<input type="text" id="PubChapterRegion" name="PubChapterRegion" placeholder="章节采集范围" class="col-xs-10 col-sm-10" 
							value="${PubChapterRegion.pattern!'' }"/>
						<span class="help-inline col-xs-2 col-sm-2">
							<label class="middle">
								<input class="ace" type="checkbox" id="_PubChapterRegion_IgnoreCase" name="_PubChapterRegion_IgnoreCase" ${PubChapterRegion.options!"" == "IgnoreCase" ? "checked='checked'" : ""} />
								<span class="lbl">忽略大小写</span>
							</label>
						</span>
						<span class="help-block">指定章节采集范围， 例如只采集前十章， 则在这里取出前十章对应的源码</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="PubChapterName">章节名 (PubChapterName)</label>
					<div class="col-sm-10">
						<input type="text" id="PubChapterName" name="PubChapterName" placeholder="章节名" class="col-xs-10 col-sm-10" 
							value="${PubChapterName.pattern!'' }"/>
						<span class="help-inline col-xs-2 col-sm-2">
							<label class="middle">
								<input class="ace" type="checkbox" id="_PubChapterName_IgnoreCase" name="_PubChapterName_IgnoreCase" ${PubChapterName.options!"" == "IgnoreCase" ? "checked='checked'" : ""} />
								<span class="lbl">忽略大小写</span>
							</label>
						</span>
						<span class="help-block"></span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="PubChapterName_FilterPattern">章节名替换</label>
					<div class="col-sm-10">
						<textarea class="form-control" id="PubChapterName_FilterPattern" name="PubChapterName_FilterPattern" placeholder="章节名替换规则,一行一个">${PubChapterName.filterPattern!'' }</textarea>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="PubChapter_GetChapterKey">章节地址(PubChapter_GetChapterKey)</label>
					<div class="col-sm-10">
						<input type="text" id="PubChapter_GetChapterKey" name="PubChapter_GetChapterKey" placeholder="章节地址" class="col-xs-10 col-sm-10" 
							value="${PubChapter_GetChapterKey.pattern!'' }"/>
						<span class="help-inline col-xs-2 col-sm-2">
							<label class="middle">
								<input class="ace" type="checkbox" id="_PubChapter_GetChapterKey_IgnoreCase" name="_PubChapter_GetChapterKey_IgnoreCase" ${PubChapter_GetChapterKey.options!"" == "IgnoreCase" ? "checked='checked'" : ""} />
								<span class="lbl">忽略大小写</span>
							</label>
						</span>
						<span class="help-block">获得章节地址(章节编号)，所获得的数量必须和章节名相同。记录变量{ChapterKey}</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="PubContentUrl">内容页地址(PubContentUrl)</label>
					<div class="col-sm-10">
						<input type="text" id="PubContentUrl" name="PubContentUrl" placeholder="内容页地址" class="col-xs-10 col-sm-10" 
							value="${PubContentUrl.pattern!'' }"/>
						<span class="help-block">章节内容页地址 可调用{ChapterKey} {NovelKey} {NovelKey2}变量</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="PubContentUrl2">真实内容页地址(PubContentUrl2)</label>
					<div class="col-sm-10">
						<input type="text" id="PubContentUrl2" name="PubContentUrl2" placeholder="内容页地址" class="col-xs-10 col-sm-10" 
							value="${PubContentUrl2.pattern!'' }"/>
						<span class="help-block">真实章节内容页地址,结果为内容页地址的子集, 一般用于解决目标站内容由js输出问题, 可调用{ChapterKey} {NovelKey} {NovelKey2}变量</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="PubContentText">章节内容(PubContentText)</label>
					<div class="col-sm-10">
						<input type="text" id="PubContentText" name="PubContentText" placeholder="章节内容" class="col-xs-10 col-sm-10" 
							value="${PubContentText.pattern!'' }"/>
						<span class="help-inline col-xs-2 col-sm-2">
							<label class="middle">
								<input class="ace" type="checkbox" id="_PubContentText_IgnoreCase" name="_PubContentText_IgnoreCase" ${PubContentText.options!"" == "IgnoreCase" ? "checked='checked'" : ""} />
								<span class="lbl">忽略大小写</span>
							</label>
						</span>
						<span class="help-block"></span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="PubContentText_ASCII">章节内容从ASCII转为NATIVE(PubContentText_ASCII)</label>
					<span class="help-inline col-xs-2 col-sm-2">
						<label class="middle">
							<input class="ace" type="checkbox" id="_PubContentText_ASCII" name="_PubContentText_ASCII" ${PubContentText_ASCII.pattern!'' == "true" ? "checked='checked'" : ""} />
							<span class="lbl"></span>
						</label>
					</span>
					<span class="help-block">某些站点中采集到的内容全部是ASCII或者很多ASCII， 选中此处， 将会把ASCII转换成正常字符</span>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="PubContentText_BJ2QJ">全角转半角（PubContentText_BJ2QJ）</label>
					<span class="help-inline col-xs-2 col-sm-2">
						<label class="middle">
							<input class="ace" type="checkbox" id="_PubContentText_BJ2QJ" name="_PubContentText_BJ2QJ" ${PubContentText_BJ2QJ.pattern!'' == "true" ? "checked='checked'" : ""} />
							<span class="lbl"></span>
						</label>
					</span>
					<span class="help-block">章节内容中全角字符转为半角字符</span>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="PubContentText_FT2JT">繁体转简体（PubContentText_FT2JT）</label>
					<span class="help-inline col-xs-2 col-sm-2">
						<label class="middle">
							<input class="ace" type="checkbox" id="_PubContentText_FT2JT" name="_PubContentText_FT2JT" ${PubContentText_FT2JT.pattern!'' == "true" ? "checked='checked'" : ""} />
							<span class="lbl"></span>
						</label>
					</span>
					<span class="help-block">章节内容将繁体转简体</span>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="PubContentText_FilterPattern">章节内容替换</label>
					<div class="col-sm-10">
						<textarea class="form-control" id="PubContentText_FilterPattern" name="PubContentText_FilterPattern" placeholder="章节内容替换规则,一行一个">${PubContentText.filterPattern!'' }</textarea>
					</div>
				</div>
				<div class="clearfix">
					<div class="col-md-offset-3 col-md-9">
						<button class="btn btn-warning" type="button" onclick="_test()">
							<i class="ace-icon fa fa-caret-square-o-right bigger-110"></i>
							测试
						</button>
					</div>
				</div>
				<hr/>
				<div class="form-group">
					<label class="col-sm-2 control-label no-padding-right" for="ruleFileName">规则文件名</label>
					<div class="col-sm-10">
						<input type="text" id="ruleFileName" name="ruleFileName" placeholder="规则文件名" class="col-xs-10 col-sm-10" 
							value="${fileName!''}"/>
						<span class="help-block">请输入要保存的文件名， 留空则随机生成文件名</span>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="clearfix form-actions">
		<div class="col-md-offset-3 col-md-9">
			<button class="btn btn-info" type="button" id="save_button">
				<i class="ace-icon fa fa-check bigger-110"></i>
				保存规则
			</button>
		</div>
	</div>
</form>
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.page-content -->

<div id="console" class="hide"></div>

<script type="text/javascript" src='${ctx}/js/jquery1.11.0.min.js'></script>
<script type="text/javascript" src="${ctx}/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="${ctx}/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${ctx}/js/fc-extra.min.js"></script>
<script type="text/javascript" src="${ctx}/js/fc-elements.min.js"></script>
<script type="text/javascript" src="${ctx}/js/fc.min.js"></script>
<script type="text/javascript" src="${ctx}/js/rule.novel.js"></script>
</body>
</html>
